<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8' />
    <meta name='viewport' content='width=device-width, initial-scale=1.0' />
    <title>Document</title>
    <script src='../js/vue.js'></script>
</head>

<body>
    <div id='root'>
        <hello-people></hello-people>
        <!-- 脚手架可以用单标签 -->
    </div>
    <script>

        /* 
                  一种简写方式  不写Vue.extend()
                      const school= { } 
              */
        const school = Vue.extend({
            name: 'name', // 改变在开发者工具中呈现的名字
            template: `
        <div>
            <h2>名称：{{name}}</h2>
        </div>
        `,
            data() {
                return {
                    name: '北京',
                };
            },
        });


        const vm = new Vue({
            el: '#root',
            data: {
            }, components: { 'hello-people': school },
        });
    </script>
</body>

</html>